package neo4j.entity;

import com.alibaba.fastjson.JSONObject;
import deepr.anno.*;
import lombok.Data;

import java.util.List;

@Data
@Schema(name = "Org", type = SchemaType.NEO4J)
public class Org {

  @Property(primaryKey = true)
  private String id;
  @Property
  private String name;
  @Property
  private boolean isPt = false;
  @Property
  private String ptUrl;

  @Property
  private JSONObject media;

  @Property(schema = Person.class, forProperty = "work")
  private List<Person> person;

  @RelationProperty(schema = Work.class, point = Type.IN, forProperty = "person")
  private Work work;

  @Property(schema = VisitPlan.class, forProperty = "belong")
  private List<VisitPlan> visitPlan;

  @RelationProperty(schema = Belong.class, point = Type.IN, forProperty = "visitPlan")
  private Belong belong;

}
